@extends('admin.base.index')
@section('content')
    <div class="block-area" id="text-input">
                <h3 class="block-title">添加商品页</h3>
                <form action=' {{ url("/admin/goods") }} ' method='post'  enctype="multipart/form-data">
                    <input type='hidden' name='_token' value='{{ csrf_token() }}'>
                    <div class="row">
                        <div class="col-lg-10">
                            可填可不填：<input name='subtitle' type="text" class="form-control m-b-10" placeholder="请输入商品小标题">
                        </div>
                        <!-- <div class="col-lg-10">
                            <input name='picture' type="file" class="form-control m-b-10" value="请选择图片">
                        </div> -->
                        <div class="space-4"></div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 商品图片:</label>
                            <div class="col-sm-9">
                                <input type="file" multiple name="picture" class="col-xs-10 col-sm-5"/>
                            </div>
                        </div>
                        <div class="col-lg-10">
                            <input name='goodsname' type="text" class="form-control m-b-10" placeholder="请输入商品名称">
                        </div>
                         <div class="col-lg-10">
                            <input name='path' type="text" class="form-control m-b-10" placeholder="请输入商品路径">
                        </div>
                        <div class="col-lg-10">
                            <input name='intro' type="text" class="form-control m-b-10" placeholder="请输入商品简介">
                        </div>
                        <div class="col-lg-10">
                            <input name='price' type="text" class="form-control m-b-10" placeholder="请输入商品价格">
                        </div>
                        <div class="col-lg-10">
                             可填可不填：<input name='preferential' type="text" class="form-control m-b-10" placeholder="请输入商品优惠价格">
                        </div>
                        <div class="col-lg-10">
                            <input name='stock' type="text" class="form-control m-b-10" placeholder="请输入商品库存">
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label no-padding-right" for="form-field-1">是否推荐:</label>
                            <div class="col-sm-9">
                                <input type="radio" class="form-control m-b-10" name='recommend' value="0">推荐<br/>
                                <input type="radio" class="form-control m-b-10" name='recommend' value="1">不推荐
                            </div>
                        </div>
                        <div class="col-lg-10"></div><div class="col-lg-10"></div>
                        <div class="space-4"></div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label no-padding-right" for="form-field-1">是否上架:</label>
                            <div class="col-sm-9">
                                <input type="radio" class="form-control m-b-10" name='status' value="0">上架<br/>
                                <input type="radio" class="form-control m-b-10" name='status' value="1">下架
                            </div>
                        </div
                        <div class='row'>
                            <div class="col-lg-10">
                                <input type='submit' class='btn' value='添加'>&nbsp;&nbsp;&nbsp;&nbsp;
                                <input type="reset" class="btn" value="重置信息">
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </form>
                <!-- 显示验证规则失败时的信息 -->
                @if (count($errors) > 0)
                    <div class="alert alert-danger">
                        <ul>
                            @foreach ($errors->all() as $error)
                                <li>{{ $error }}</li>
                            @endforeach
                        </ul>
                    </div>
                @endif
    </div>
@stop
